﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Http;
using System.Net.Http;
using System.IO;

namespace PServiceBus.WebAPI.Controllers {
    public class FileController : ApiController {

        public HttpResponseMessage Get() {
            var filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "clientaccesspolicy.xml");
            var response = Request.CreateResponse();
            response.Content = new StreamContent(File.Open(filePath, FileMode.Open));
            return response;
        }

    }
}
